package vue.components;

import java.awt.*;

import javax.swing.*;
import javax.swing.border.*;
/**
 * <p>Title: vue.components.TPPanel </p>
 *
 * <p>
 * 	Description: Theme graphique pour tous les JPanel
 * </p>
 *
 * <p>Copyright: (c) 2008 FSSIM</p>
 *
 * <p>Company: FSSImock</p>
 *
 * @author Antoine Farnault
 * @author Augustin Couette
 * @version 1.1
 */
public class TPPanel extends JPanel {

	private static final long serialVersionUID = 1L;

	public TPPanel() {
		initComponent();
	}
	
	/**
	 * Initialisation graphique du composant
	 */
	private void initComponent() {
        setBackground(Color.WHITE);

	}
	
	/**
	 * Met un borderTitle
	 * @param title
	 */
	public void setTPTitle(String title){
		setBorder(BorderFactory.createTitledBorder(null, title, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font(getFont().getName(), 2, getFont().getSize()+5), new Color(255, 50, 0)));
	}
}
